<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- 
    Document   : menu
    Created on : Dec 27, 2009, 3:24:12 PM
    Author     : Administrator
--%>

<div class="art-Block">
    <div class="art-Block-tl"></div>
    <div class="art-Block-tr"></div>
    <div class="art-Block-bl"></div>
    <div class="art-Block-br"></div>
    <div class="art-Block-tc"></div>
    <div class="art-Block-bc"></div>
    <div class="art-Block-cl"></div>
    <div class="art-Block-cr"></div>
    <div class="art-Block-cc"></div>
    <div class="art-Block-body">
        <div class="art-BlockHeader">
            <div class="l"></div>
            <div class="r"></div>
            <div class="art-header-tag-icon">

                <div class="t">Home</div>
            </div>
        </div>
        <div class="art-BlockContent">
            <div class="art-BlockContent-body">
                <ul>
                    <li><a href="<%=request.getContextPath()%>/home/index">Index</a><br/></li>
                    <li><a href="<%=request.getContextPath()%>/home/about">About</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>




<c:if test="${pageContext.request.remoteUser!=null}">
    <div class="art-Block">
        <div class="art-Block-tl"></div>
        <div class="art-Block-tr"></div>
        <div class="art-Block-bl"></div>
        <div class="art-Block-br"></div>
        <div class="art-Block-tc"></div>
        <div class="art-Block-bc"></div>
        <div class="art-Block-cl"></div>
        <div class="art-Block-cr"></div>
        <div class="art-Block-cc"></div>
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="l"></div>
                <div class="r"></div>
                <div class="art-header-tag-icon">

                    <div class="t">Test Marker's Tasks</div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div class="art-BlockContent-body">
                    <ul>
                        <li><a href="<%=request.getContextPath()%>/category/list">Manage question categories</a><br/></li>
                        <li><a href="<%=request.getContextPath()%>/question/list">Manage questions</a><br/></li>
                        <li><a href="<%=request.getContextPath()%>/test/listSessions">Manage test sessions</a></li>
                        <li><a href="<%=request.getContextPath()%>/test/generateSession">Generate test session</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="art-Block">
        <div class="art-Block-tl"></div>
        <div class="art-Block-tr"></div>
        <div class="art-Block-bl"></div>
        <div class="art-Block-br"></div>
        <div class="art-Block-tc"></div>
        <div class="art-Block-bc"></div>
        <div class="art-Block-cl"></div>
        <div class="art-Block-cr"></div>
        <div class="art-Block-cc"></div>
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="l"></div>
                <div class="r"></div>
                <div class="art-header-tag-icon">

                    <div class="t">Administrator's Tasks</div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div class="art-BlockContent-body">
                    <ul>
                        <li><a href="#">Manage accounts</a><br/></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</c:if>

<div class="art-Block">
    <div class="art-Block-tl"></div>
    <div class="art-Block-tr"></div>
    <div class="art-Block-bl"></div>
    <div class="art-Block-br"></div>
    <div class="art-Block-tc"></div>
    <div class="art-Block-bc"></div>
    <div class="art-Block-cl"></div>
    <div class="art-Block-cr"></div>
    <div class="art-Block-cc"></div>
    <div class="art-Block-body">
        <div class="art-BlockHeader">
            <div class="l"></div>
            <div class="r"></div>
            <div class="art-header-tag-icon">

                <div class="t">Security</div>
            </div>
        </div>
        <div class="art-BlockContent">
            <div class="art-BlockContent-body">
                <c:choose>
                    <c:when test="${pageContext.request.remoteUser!=null}">
                        <div>Welcome <strong>${pageContext.request.remoteUser}</strong>!</div>
                        <ul>
                            <li><a href="<%=request.getContextPath()%>/security/logout">Logout</a><br/></li>
                        </ul>
                    </c:when>
                    <c:otherwise>
                        <ul>
                            <li><a href="<%=request.getContextPath()%>/security/login">Login</a><br/></li>
                        </ul>
                    </c:otherwise>
                </c:choose>
            </div>
        </div>
    </div>
</div>


